package com.ys.service.Impl;

import com.ys.mapper.MembertypMapper;
import com.ys.pojo.Membertype;
import com.ys.service.MembertypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("MembertypeService")
public class MembertypeServiceImpl implements MembertypeService {
    @Resource
    private MembertypMapper membertypMapper;

    @Override
    public Membertype membertyp(int id) {
        return membertypMapper.membertyp(id);
    }

    @Override
    public List<Membertype> select() {
        return membertypMapper.select();
    }

    @Override
    public boolean asddsinsert(Membertype membertype) {
        return membertypMapper.addsinsert(membertype);
    }

    @Override
    public boolean uspdsupdate(Membertype membertype) {
        return membertypMapper.updsupdate(membertype);
    }
}
